package com.hygj.service.impl;

import com.hygj.baseUtil.BaseDao;
import com.hygj.baseUtil.BaseServiceImpl;
import com.hygj.pojo.RoleAuth;
import com.hygj.service.RoleAuthService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author hygl
 */
@Service("roleAuthService")
public class RoleAuthServiceImpl extends BaseServiceImpl<RoleAuth> implements RoleAuthService {

	@Resource(name = "roleAuthDao")
	@Override
	public void setDao(BaseDao<RoleAuth> dao) {
		super.setDao(dao);
	}

	@Override
	public RoleAuth selectAuthIds(Integer rid1) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("rid", rid1);
		return (RoleAuth) find("finds",params);
	}
}
